import request from '@/utils/request'

// 查询生产领料单行列表
export function listIssueLine(query) {
  return request({
    url: '/IssueLine/IssueLine/list',
    method: 'get',
    params: query
  })
}

// 查询生产领料单行详细
export function getIssueLine(lineId) {
  return request({
    url: '/IssueLine/IssueLine/' + lineId,
    method: 'get'
  })
}

// 新增生产领料单行
export function addIssueLine(data) {
  return request({
    url: '/IssueLine/IssueLine',
    method: 'post',
    data: data
  })
}

// 修改生产领料单行
export function updateIssueLine(data) {
  return request({
    url: '/IssueLine/IssueLine',
    method: 'put',
    data: data
  })
}

// 删除生产领料单行
export function delIssueLine(lineId) {
  console.log("lineId");
  console.log(lineId);
  
  return request({
    url: '/IssueLine/IssueLine/' + lineId,
    method: 'delete'
  })
}
